//
//  BSDetailsViewController.m
//  BS
//
//  Created by 王浩宇 on 15/8/15.
//  Copyright (c) 2015年 lanou. All rights reserved.
//

#import "BSDetailsViewController.h"
#import "Header.h"

@interface BSDetailsViewController ()
@property (nonatomic, strong)UIWebView *webView;

@end

@implementation BSDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self creationWebView];
    
}

- (void)creationWebView
{
    _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT )];
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.webUrl]];
    [_webView loadRequest:request];
    NSLog(@"webview:%@",self.webUrl);
    [self.view addSubview:_webView];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
